<?php $this->_extends('_layouts/bedetails_layout'); ?>

<?php $this->_block('classname'); ?><?php echo $nowclass;?><?php $this->_endblock('classname'); ?>

<?php $this->_block('contents'); ?>

	<div id="getting-started" alt="详细行为日志">
	    
		<table>
		<?php if($sk=='TERMINAL'):?>
		<tr><th width="35">序号</th><th width="80">日期</th><th width="35">MAC地址</th><th>内容</th></tr>
		<?php foreach ($group as $s): ?>
		<tr><td align="center"><?php echo $s->id;?></td><td><?php echo $s->date.' '.$s->time;?></td><td><?php echo $s->macaddress;?></td><td><div class="breakl bauto">方式：<?php echo $s->loginname.' 登录用户：'.$s->loginuser;?> 登录IP地址：<?php echo $s->loginip;?><div></td></tr>
		<?php endforeach; ?>
		</table>
		<?php endif;?>

		<?php if($sk=='PROCESSINFO'):?>
		<tr><th width="35">序号</th><th width="80">日期</th><th width="35">MAC地址</th><th>内容</th></tr>
		<?php foreach ($group as $s): ?>
		<tr><td align="center"><?php echo $s->id;?></td><td><?php echo $s->date.' '.$s->time;?></td><td><?php echo $s->macaddress;?></td><td><div class="breakl bauto">进程名：<?php echo iconv("gb2312//TRANSLIT","utf-8",$s->procname).' 进程ID：'.$s->pid;?><div></td></tr>
		<?php endforeach; ?>
		</table>
		<?php endif;?>

		<?php if($sk=='FILEINFO'):?>
		<tr><th width="35">序号</th><th width="80">日期</th><th width="35">MAC地址</th><th>内容</th></tr>
		<?php foreach ($group as $s): ?>
		<tr><td align="center"><?php echo $s->id;?></td><td><?php echo $s->date.' '.$s->time;?></td><td><?php echo $s->macaddress;?></td><td><div class="breakl bauto">文件访问路径：<?php echo iconv("gb2312//TRANSLIT","utf-8",$s->filename);?><div></td></tr>
		<?php endforeach; ?>
		</table>
		<?php endif;?>

		<?php if($sk=='TCPCONNECT'):?>
		<tr><th width="35">序号</th><th width="80">日期</th><th width="35">MAC地址</th><th>内容</th></tr>
		<?php foreach ($group as $s): ?>
		<tr><td align="center"><?php echo $s->id;?></td><td><?php echo $s->date.' '.$s->time;?></td><td><?php echo $s->macaddress;?></td><td><div class="breakl bauto">连接IP：<?php echo $s->originalip.':'.$s->originalport.' 客户端IP：'.$s->targetip.':'.$s->targetport;?><br>文件路径：<?php echo iconv("gb2312//TRANSLIT","utf-8",$s->process);?><br>文件：<?php echo iconv("gb2312//TRANSLIT","utf-8",$s->filename);?><br>状态：<?php echo iconv("gb2312//TRANSLIT","utf-8",$s->state);?><div></td></tr>
		<?php endforeach; ?>
		</table>
		<?php endif;?>

		<?php if($sk=='REGINFO'):?>
		<tr><th width="35">序号</th><th width="80">日期</th><th width="75">MAC地址</th><th>键值修改</th></tr>
		<?php foreach ($group as $s): ?>
		<tr><td align="center"><?php echo $s->id;?></td><td><?php echo $s->date.' '.$s->time;?></td><td><?php echo $s->macaddress;?></td><td><div class="breakl bauto"><?php echo str_replace("    ", "<br>", iconv("gb2312//TRANSLIT","utf-8",$s->changekey));?><div></td></tr>
		<?php endforeach; ?>
		</table>
		<?php endif;?>

		<?php if($sk=='CMDINFO'):?>
		
		<?php foreach ($group as $s): ?>
		<div class="breakl bauto1"><?php echo CMDInfo::formatcmd(iconv("GB2312","UTF-8",$s->detail)); ?></div>
		<?php endforeach; ?>
		<?php endif;?>
		<div style="width:100%;">
		<div style="float:left; width:50%;"><?php if($prev!=''){?><a href="index.php?controller=behaviorlog&tablename=<?php echo $sk;?>&action=details&tableid=<?php echo $prev;?>"><< 上一条 <<</a><?php  }else{echo '已经第一条';} ?></div>
		<div style="float:right; width:50%;" align="right"><?php if($next!=''){?><a href="index.php?controller=behaviorlog&tablename=<?php echo $sk;?>&action=details&tableid=<?php echo $next;?>">>> 下一条 >></a><?php  }else{echo '已经最后一条';} ?></div>
		</div>
		
	</div>

<?php $this->_endblock('contents'); ?>